<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}量化交易系统{% endblock %}</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="{{ url_for('web.index') }}">量化交易系统</a>
            <div class="collapse navbar-collapse">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.index') }}">首页</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.data_management') }}">数据管理</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.strategies') }}">策略管理</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.backtest') }}">策略回测</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.simulator') }}">模拟交易</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.risk') }}">风险管理</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.notifications') }}">预警通知</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.stock_pool') }}">股票池</a></li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 页面内容 -->
    <div class="container mt-4">
        {% block content %}{% endblock %}
    </div>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
